using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._Indexes
{
    /// <summary>
    /// <para>Remove Spatial Index</para>
    /// <para>Deletes the spatial index from a shapefile or file geodatabase, mobile geodatabase, or an enterprise geodatabase feature class.</para>
    /// <para>从 shapefile 或文件地理数据库、移动地理数据库或企业级地理数据库要素类中删除空间索引。</para>
    /// </summary>    
    [DisplayName("Remove Spatial Index")]
    public class RemoveSpatialIndex : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public RemoveSpatialIndex()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_features">
        /// <para>Input Features</para>
        /// <para>The shapefile or file geodatabase, mobile geodatabase, or an enterprise geodatabase feature class from which a spatial index will be removed.</para>
        /// <para>要从中移除空间索引的 shapefile 或文件地理数据库、移动地理数据库或企业级地理数据库要素类。</para>
        /// </param>
        public RemoveSpatialIndex(object _in_features)
        {
            this._in_features = _in_features;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Remove Spatial Index";

        public override string CallName => "management.RemoveSpatialIndex";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_in_features, _out_feature_class];

        /// <summary>
        /// <para>Input Features</para>
        /// <para>The shapefile or file geodatabase, mobile geodatabase, or an enterprise geodatabase feature class from which a spatial index will be removed.</para>
        /// <para>要从中移除空间索引的 shapefile 或文件地理数据库、移动地理数据库或企业级地理数据库要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_features { get; set; }


        /// <summary>
        /// <para>Updated Dataset</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Dataset")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_feature_class { get; set; }


        public RemoveSpatialIndex SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}